﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PeisongWeb
{
    public partial class index : customerPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //如果不为供应商则跳转
                if (!allowAccess(Convert.ToInt32(companyType.Provider)))
                {
                    Response.Redirect("/buyer/buyer_index.html");
                }
                else
                {
                    Response.Redirect("/seller/seller_index.html");
                }
            }
        }
    }
}
